<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>系统用户_列表</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="<?php echo STATIC_ADMIN; ?>bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="//cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">

    <link rel="stylesheet" href="<?php echo STATIC_ADMIN; ?>dist/css/AdminLTE.css">
    <link rel="stylesheet" href="<?php echo STATIC_ADMIN; ?>dist/css/skins/_all-skins.css">

    <link rel="stylesheet" href="<?php echo STATIC_ADMIN; ?>dist/css/yc_style.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body class="hold-transition skin-blue">
<!-- Site wrapper -->
<div class="wrapper">

  <!-- main -->
  <div class="content-wrapper" style="margin: 0;">

      <!-- page title -->
    <section class="content-header">
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-gear"></i> 系统管理</a></li>
        <li><a href="#">系统用户</a></li>
        <li class="active">列表</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="alert alert-dismissible" role="alert" style="display: none;">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <strong>提示：</strong><span id="msg">消息</span>
        </div>

      <!-- Default box -->
      <div class="box">
          <div class="box-header with-border">
              <h3 class="box-title">用户列表</h3>

              <div class="box-tools pull-right">
                  <a href="<?php echo site_url('system/User/add');?>" class="btn btn-sm btn-info" role="button">添加用户</a>
              </div>
          </div>

          <div class="box-body">
              <div class="table-responsive">
                  <table class="table table-condensed table-bordered table-hover">
                      <thead class="table_head">
                      <tr>
                          <th class="text-center">ID</th>
                          <th class="text-center">用户名</th>
                          <th class="text-center">所属角色</th>
                          <th class="text-center">真实姓名</th>
                          <th class="text-center">E-mail</th>
                          <th class="text-center">手机号码</th>
                          <th class="text-center">状态</th>
                          <th class="text-center">操作</th>
                      </tr>
                      </thead>
                      <tbody>
                      <?php
                      foreach ($user as $val) {
                          ?>
                          <tr>
                              <td class="text-center"><?php echo $val['user_id'];?></td>
                              <td class="text-left"><?php echo $val['user_name'];?></td>
                              <td class="text-center"><?php echo $val['role_name'];?></td>
                              <td class="text-left"><?php echo $val['user_realname'];?></td>
                              <td class="text-left"><?php echo $val['user_email'];?></td>
                              <td class="text-center"><?php echo $val['user_mobile'];?></td>
                              <td class="text-center"><?php echo $val['user_status']>0 ? '正常' : '锁定';?></td>
                              <td class="text-center">
                                  <a href="<?php echo site_url('system/User/edit/'.$val['user_id']);?>" class="btn btn-default" role="button">编辑</a>
                                  <a href="javascript:void(0);" class="btn btn-default"
                                     onclick="ycApp.ajaxDel('<?php echo site_url('system/User/del');?>', 'user_id=<?php echo $val['user_id'];?>');"
                                     role="button">删除</a>
                              </td>
                          </tr>
                      <?php }?>
                      </tbody>
                  </table>
              </div>
          </div>

          <div class="box-footer"></div>
      </div>
      <!-- /.box -->

    </section>
    <!-- /.content -->
  </div>
  <!-- main end -->

</div>
<!-- ./wrapper -->

</body>
</html>
<!-- jQuery 2.2.3 -->
<script src="<?php echo STATIC_COMMON; ?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="<?php echo STATIC_ADMIN; ?>bootstrap/js/bootstrap.min.js"></script>
<!-- layer 3.0.3 -->
<script src="<?php echo STATIC_COMMON; ?>plugins/layer/layer.js"></script>

<!-- other -->
<script src="<?php echo STATIC_ADMIN; ?>dist/js/yc_app.js"></script>

